package com.cn.buss.service.imp;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.buss.LzlCompany;
import com.cn.buss.dao.BussCompanyDao;
import com.cn.buss.service.BussCompanyService;
import org.springframework.stereotype.Service;

@Service
public class BussCompanyServiceImp extends ServiceImpl<BussCompanyDao, LzlCompany> implements BussCompanyService {

    @Override
    public LzlCompany getCompany(String merchantCode) {
        QueryWrapper<LzlCompany> query = new QueryWrapper<LzlCompany>().eq("merchant_code", merchantCode);
        return this.getOne(query) ;
    }
}
